package com.caigou.mapper.exam;

import com.caigou.bean.exam.entity.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer id);

    int updateByUserIdSelective(UserInfo record);

    int updateByUserId(UserInfo record);

    UserInfo findUserInfoByUserId(String userId);

    List<UserInfo> findUserInfoByUserIds(@Param("ids") List<String> ids);


    List<UserInfo> findUserInfoByNickname(String nickname);

    List<UserInfo> findUserInfoByNicknamePrecisMatch(String nickname);

    int updateUserLoginNum(String userid);

}
